rememberAIImageGeneration

A composable helper function that creates and remembers a Dock.Button that opens a sheet with prompt input to generate an image.

Return

a button that will be displayed in the dock.

Parameters

aiGatewayConfig

the gateway config to IMG.LY AI features.

builder

the builder lambda to override the default builder.


A composable helper function that creates and remembers an InspectorBar.Button that opens a sheet with prompt input to generate an image and replace currently selected image block.

Return

a button that will be displayed in the inspector bar.

Parameters

aiGatewayConfig

the gateway config to IMG.LY AI features.

builder

the builder lambda to override the default builder.